package testpackage;

public class TrafficController {
	public static final String BASEURL = "http://local.yahooapis.com/MapsService/V1/trafficData";
	public static final String BASEAPPID = "3i2ZHnvV34GdAl4rppYHsr0B1K5PpxDcznkUwc0Xqm7pJChlglFHJPIr.mfMkb4kYEA-";
	
	public final TrafficBean createBean() {
		TrafficBean ret = new TrafficBean();
		ret.setAppid(BASEAPPID);
		return ret;
	}
	
	public final String buildURL(TrafficBean bean) {
		StringBuffer url = new StringBuffer(BASEURL);
		url.append("?");
		url.append(bean.toString());
		return url.toString();
	}
}
